package com.mdd.admin.service.order;

import com.mdd.admin.validate.order.OfflinePaymentCreateValidate;
import com.mdd.admin.validate.order.OfflinePaymentSearchValidate;
import com.mdd.admin.validate.order.OfflinePaymentUpdateValidate;
import com.mdd.admin.vo.order.OfflinePaymentDetailVo;
import com.mdd.admin.vo.order.OfflinePaymentListedVo;
import com.mdd.common.base.page.PageValidate;
import com.mdd.common.core.PageResult;

/**
 * 订单还款计划线下支付记录服务接口类
 * @author LikeAdmin
 */
public interface IOfflinePaymentService {

    /**
     * 订单还款计划线下支付记录列表
     *
     * @author LikeAdmin
     * @param pageValidate 分页参数
     * @param searchValidate 搜索参数
     * @return PageResult<OrderOfflinePaymentListedVo>
     */
    PageResult<OfflinePaymentListedVo> list(PageValidate pageValidate, OfflinePaymentSearchValidate searchValidate);

    /**
     * 订单还款计划线下支付记录详情
     *
     * @author LikeAdmin
     * @param id 主键ID
     * @return OrderOfflinePaymentDetailVo
     */
    OfflinePaymentDetailVo detail(Long id);

    /**
     * 订单还款计划线下支付记录新增
     *
     * @author LikeAdmin
     * @param createValidate 参数
     */
    void add(OfflinePaymentCreateValidate createValidate);

    /**
     * 订单还款计划线下支付记录编辑
     *
     * @author LikeAdmin
     * @param updateValidate 参数
     */
    void edit(OfflinePaymentUpdateValidate updateValidate);

    /**
     * 订单还款计划线下支付记录删除
     *
     * @author LikeAdmin
     * @param id 主键ID
     */
    void del(Long id);

}
